#include <iostream>
#include <unistd.h>
#include <signal.h>
#include <sys/types.h>

int main(int arg, char *argv[])
{
    if (arg != 3)
    {
        std::cerr << "Usage: " << argv[0] << " signum pid" << std::endl;
        return 1;
    }
    pid_t pid = std::stoi(argv[2]);
    int signum = std::stoi(argv[1]);
    kill(pid, signum);
    return 0;
}